#pragma once



// CUIThread

class CUIThread : public CWinThread
{
	DECLARE_DYNCREATE(CUIThread)
	enum UIType{
		TH_TRAY,
		TH_FRAME,
	};
public:
	CUIThread();
	CUIThread(HWND hWnd,UIType etype);
	virtual ~CUIThread();
	

public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();

protected:
	afx_msg void OnExit(WPARAM wparam,LPARAM lparam);
	DECLARE_MESSAGE_MAP()
private:
	HWND m_hMainFrameWnd;
	UIType m_eUIType;
};


